﻿using Prism.Ioc;
using Prism.Modularity;
using Prism.Unity;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace StockTraderRI
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : PrismApplication
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<Shell>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {

        }
        /// <summary>
        /// 加入各模块
        /// </summary>
        /// <param name="moduleCatalog"></param>
        protected override void ConfigureModuleCatalog(IModuleCatalog moduleCatalog)
        {
            moduleCatalog.AddModule(typeof(StockTraderRI.Modules.Market.MarketModule));
            moduleCatalog.AddModule(typeof(StockTraderRI.Modules.Position.PositionModule));
            moduleCatalog.AddModule(typeof(StockTraderRI.Modules.Watch.WatchModule));
            moduleCatalog.AddModule(typeof(StockTraderRI.Modules.News.NewsModule));
        }
    }
}
